import request from '@/utils/request';


export default {
    findRecord(pageym,pagesize,name) {
        return request({
            url: `http://localhost/api/fina/record/findRecord?pageym=${pageym}&pagesize=${pagesize}&cardid=${name}&patiname=${name}`,
            method: 'post'
        });
    },
  
    delRecord(id){
        return request({
            url: `http://localhost/api/fina/record/delRecord?id=${id}`,
            method: 'post'
        });
    },
    getListDto(){
        return request({
            url: `http://localhost/api/fina/record/getListDto`,
            method: 'post'
        });
    },
    addOptype(data) {
        return request({
            url: `http://localhost/api/fina/record/addRecord`,
            method: 'post',
            data
        });
    },
    upRecordui(id){
        return request({
            url: `http://localhost/api/fina/record/upRecordui?id=${id}`,
            method: 'post',      
        });
    },
    upRecord(data) {
        return request({
            url: `http://localhost/api/fina/record/upRecord`,
            method: 'post',
            data
        });
    },
}